package com.itheima;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

//表示通用bean
@Component
@ConfigurationProperties(prefix = "user1")//给对象赋值，将注解转换成对象
public class Student {
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
